<?php

use Illuminate\Database\Seeder;

class CategoriesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
	    DB::table('categories')->insert([
		    'id' => 1,
		    'title' => '未分类',
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 2,
		    'title' => '眼镜',
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 3,
		    'title' => '男士眼镜',
		    'parent_id' => 2,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 4,
		    'title' => '女性眼镜',
		    'parent_id' => 2,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 5,
		    'title' => '飞行员眼镜',
		    'parent_id' => 2,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 6,
		    'title' => '驾驶镜',
		    'parent_id' => 2,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 7,
		    'title' => '太阳眼镜',
		    'parent_id' => 2,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 8,
		    'title' => '图书',
		    'parent_id' => 0,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 9,
		    'title' => '历史',
		    'parent_id' => 8,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 10,
		    'title' => '科技',
		    'parent_id' => 8,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 11,
		    'title' => '计算机',
		    'parent_id' => 8,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 12,
		    'title' => '电子书',
		    'parent_id' => 8,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 13,
		    'title' => '科普',
		    'parent_id' => 10,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 14,
		    'title' => '建筑',
		    'parent_id' => 10,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 16,
		    'title' => '工业技术',
		    'parent_id' => 10,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 17,
		    'title' => '电子通信',
		    'parent_id' => 10,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 18,
		    'title' => '自然科学',
		    'parent_id' => 10,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 19,
		    'title' => '互联网',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 20,
		    'title' => '计算机编程',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 21,
		    'title' => '硬件，攒机',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 22,
		    'title' => '大数据',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 23,
		    'title' => '移动开发',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 24,
		    'title' => 'PHP',
		    'parent_id' => 11,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 25,
		    'title' => '近代史',
		    'parent_id' => 9,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 26,
		    'title' => '当代史',
		    'parent_id' => 9,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 27,
		    'title' => '古代史',
		    'parent_id' => 9,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 28,
		    'title' => '先秦百家',
		    'parent_id' => 9,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 29,
		    'title' => '三皇五帝',
		    'parent_id' => 9,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 30,
		    'title' => '励志',
		    'parent_id' => 12,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 31,
		    'title' => '小说',
		    'parent_id' => 12,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 32,
		    'title' => '成功学',
		    'parent_id' => 12,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 33,
		    'title' => '经济金融',
		    'parent_id' => 12,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('categories')->insert([
		    'id' => 34,
		    'title' => '免费',
		    'parent_id' => 12,
		    'created_at' => date('YmdHis', time()),
	    ]);
    }
}
